package com.example.adapter.objectAdapter.Impi;

import com.example.adapter.objectAdapter.NewAdapter;
import com.example.adapter.objectAdapter.OldClazz;

public class NewAdapterImpi implements NewAdapter {
    private OldClazz oldClazz;

    public NewAdapterImpi(OldClazz oldClazz) {
        this.oldClazz = oldClazz;
    }

    @Override
    public void newAdapter() {
        oldClazz.oldMethod();
        System.out.println("对象适配器");
    }
}
